
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>推荐人</title>
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
		<script type="text/javascript" src="__PUBLIC__/static/js/jquery.min.js"></script>
		<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
		<script src="__PUBLIC__/static/layui/layui.js"></script>
		<style type="text/css">
			.exchange_tip{padding: 10px 0 20px; background: white;}
			.exchange_tip p{width: 94%; margin: 0 auto;}
			.exchange_bt{background: url(../images/bac_jfdh2.jpg) no-repeat left center; background-size: 100% auto; text-align: center; font-size: 14px; margin-bottom: 5px;}
		</style>
	</head>

	<body>
		<form class="layui-form update_form" action=""style="margin-left: 10%;">
			<div class="layui-form-item">
				<label class="layui-form-label" style="margin-left: 25%;">推荐人电话</label>
				<div class="layui-input-block update_shurk">
					<input type="text" id='city_mobile' name="city_mobile" placeholder="推荐人电话" class="layui-input" style="width: 350px;">
				</div>
			</div>
			<div class="layui-form-item update_btnbox">
				<div class="layui-input-block">
					<button class="layui-btn" type="button" onclick="set_mobile()">提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
<script type="text/javascript" src="__PUBLIC__/static/js/jquery.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
<script src="__PUBLIC__/static/layui/layui.all.js"></script>
		<script>
			function set_mobile(){
				$.ajax({
	             	type:"post",
	                url:"{:url('index/show_city_pt')}",
	                data: {city_mobile : $('#city_mobile').val()},//表单数据
	                success:function(data){
	                    if(data.code==200){
	                    	layer.msg(data.msg, {
							  icon: 1,
							  time: 1500 //2秒关闭（如果不配置，默认是3秒）
							}, function(){
								window.parent.location.reload();
								var index = parent.layer.getFrameIndex(window.name); //获取窗口索引  
						       	parent.layer.close(index); 
							});
	                    }else{
	                    	layer.msg('失败！');//保存成功提示
	                    }
	                }
			     });
			}
		</script>
	</body>

</html>